package app.biz.service;

import app.biz.model.EcgRequest;
import com.alibaba.fastjson.JSONObject;

import java.io.IOException;

/** Created by shadowedge on 2018/11/24. */
public interface EcgResultService {

  /**
   * 保存结果
   * @param result
   * @return
   * @throws IOException
   */
  String saveResult(JSONObject result) throws IOException;

  /**
   * 异步保存结果
   * @param obj
   * @throws IOException
   */
  void saveResultAsync(JSONObject obj) throws IOException;

  /**
   * 根据sid查询解析结果
   *
   * @param sid
   * @return
   */
   JSONObject findResultBySid(long sid);
}
